package follow.juc.writing.demo2;

/**
 * @Author tu zy
 * @Date 2020/12/7 13:29
 * @Version 1.0
 */
public class ThreadDemo8 {
    public static void main(String[] args) {
        Thread t = new Thread(new Runnable() {
            @Override
            public void run() {
                /*System.out.println("hello world");*/
            }
        });

        t.start();

        System.out.println(t.getState());//RUNNABLE
        System.out.println(t.getState());//TERMINATED
    }
}
